package cn.apelx.shardingjdbc.domain;

import lombok.Getter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 测试不指定分表规则, sql会不会被代理
 *
 * @author apelx
 * @since 2022-05-14
 */
@Getter
@Entity
@Table(name = "test")
public class Test {

    @Id
    private Integer id;

    private String name;

    protected Test() {

    }

    public Test(Integer id, String name) {
        this.id = id;
        this.name = name;
    }
}
